package kr.hkit.powerjava.chapter22;

public class MultipuleGenericTest {
	public static void main(String[] args) {
		
		Pair<String, Integer> p1 = new OrderPair <String, Integer> ("Event",6);
		Pair<Integer, Integer> p2 = new OrderPair <Integer, Integer>(1, 90);
		//여러개 타입 가능!!
		
		String p1Key = p1.getkey();
		p1.getvalue();
		System.out.println(p1Key + ", " + p1.getvalue());
		int p2Key = p2.getkey();
		p2.getvalue();
		System.out.println(p2Key + ", " + p2.getvalue());
		
	}
}
